package com.qiaofang.applet.service.property.service.dto;

import cn.hutool.core.date.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: youqing.yang
 * @Create: 2020/12/01 19:14
 * @Description:
 **/
@Data
@ApiModel("访客列表Dto")
public class VisitorRecordsListDto {

    @ApiModelProperty("会员ID")
    private String memberId;

    @ApiModelProperty("昵称")
    private String memberName;

    @ApiModelProperty("头像")
    private String headPortrait;

    @ApiModelProperty("数量")
    private Integer count;

    @ApiModelProperty("小区")
    private String estateName;

    @ApiModelProperty("房（户型）")
    private String houseType;

    @ApiModelProperty("图片")
    private String mainImageUrl;

    @ApiModelProperty("面积")
    private String square;

    @ApiModelProperty("是否已读")
    private Boolean read;

    @ApiModelProperty("访问时间")
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public String getCreateTime(){
        return DateUtil.format(createTime,"yyyy-MM-dd HH:mm");
    }


}
